FROM java:8
ARG JAR_FILE
WORKDIR /opt/work/
ADD $JAR_FILE app.jar
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
ENTRYPOINT ["java","-jar","-XX:+UseG1GC","-XX:+HeapDumpOnOutOfMemoryError","-XX:+PrintAdaptiveSizePolicy","-XX:+PrintTenuringDistribution","-XX:+PrintGCDateStamps","-XX:+PrintGCDetails","-Dnacos.use.endpoint.parsing.rule=false","-Dnacos.use.cloud.namespace.parsing=false","app.jar"]